import req from '@/http/http'
import {getServer} from '@/http/AppApi'

// 房
let ZHPQ_SERVER = getServer()
export const getApplicationHouse = _ => {
  let path = ZHPQ_SERVER + '/statistics/room/houseTotal'
  return req.get(path)
}
// 小区
export const getApplicationXq = data => {
  let path = ZHPQ_SERVER + '/statistics/room/community'
  return req.get(path, data)
}
// 楼栋
export const getApplicationLd = data => {
  let path = ZHPQ_SERVER + '/statistics/room/building'
  return req.get(path, data)
}
// 房屋
export const getApplicationFw = data => {
  let path = ZHPQ_SERVER + '/statistics/room/house'
  return req.get(path, data)
}
// 出租房
export const getApplicationCzf = data => {
  let path = ZHPQ_SERVER + '/statistics/room/rentalHouse'
  return req.get(path, data)
}
// 院落
export const getApplicationYl = data => {
  let path = ZHPQ_SERVER + '/statistics/room/courtyard'
  return req.get(path, data)
}

// 人
export const getApplicationPeople = data => {
  let path = ZHPQ_SERVER + '/statistics/people/total'
  return req.get(path, data)
}
// 党员
export const getPeopleParty = data => {
  let path = ZHPQ_SERVER + '/statistics/people/dy/search'
  return req.get(path, data)
}
// 特殊人群
export const getPeopleSpecia = data => {
  let path = ZHPQ_SERVER + '/statistics/people/ts/search'
  return req.get(path, data)
}
// 户籍人群
export const getPeopleHj = data => {
  let path = ZHPQ_SERVER + '/statistics/people/hj/search'
  return req.get(path, data)
}
// 流动
export const getPeopleLd = data => {
  let path = ZHPQ_SERVER + '/statistics/people/ld/search'
  return req.get(path, data)
}
// 境外
export const getPeopleJw = data => {
  let path = ZHPQ_SERVER + '/statistics/people/jw/search'
  return req.get(path, data)
}

// 事
export const getApplicationMatter = _ => {
  let path = ZHPQ_SERVER + '/statistics/thing/total'
  return req.get(path)
}

// 矛盾纠纷
export const getApplicationMd = data => {
  let path = ZHPQ_SERVER + '/statistics/thing/mdtj/search'
  return req.get(path, data)
}

// 重大案件
export const getApplicationZdaj = data => {
  let path = ZHPQ_SERVER + '/statistics/thing/tdaj/search'
  return req.get(path, data)
}

// 民情日志
export const getApplicationMqrz = data => {
  let path = ZHPQ_SERVER + '/statistics/thing/mqrz/search'
  return req.get(path, data)
}

// 民生事件
export const getApplicationMssj = data => {
  let path = ZHPQ_SERVER + '/statistics/thing/sj/search'
  return req.get(path, data)
}
